<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
            list-style: none;
            text-decoration: none;
        }
        ul{
            width: 1000px;
            overflow: hidden;
            border: 1px solid gainsboro;
        }
        li{
            width: 100px;
            height:40px;
            float: left;
            box-sizing: border-box;
            border-right: 1px solid gray;
            text-align: center;
            line-height: 40px;
            font-size: 14px;
        }
        a{
            display: block;
            color: black;
           padding-left: 18px;
        }
        .one{
         background: url(./img/03.png)  no-repeat  5px -54px;
        }
        .one:hover{
            background-position: 5px -93px;
            color: green;
        }
        .two{
            background:url(./img/03.png) no-repeat 5px -132px;
        }
        .two:hover{
            background-position: 5px -172px;
            color: green;
        }
        .three{
            background: url(./img/03.png) no-repeat 5px -212px;
        }
        .three:hover{
            background-position: 5px -255px;
            color: yellow;
            background-color: aqua;
        }
    </style>
</head>
<body>
    <ul>
        <li><a href="#" class="one">文本主页</a></li>
        <li><a href="#" class="two">文本主页</a></li>
        <li><a href="#" class="three">文本主页</a></li>
        <li><a href="#">文本主页</a></li>
        <li><a href="#">文本主页</a></li>
        <li><a href="#">文本主页</a></li>
        <li><a href="#">文本主页</a></li>
        <li><a href="#">文本主页</a></li>
        <li><a href="#">文本主页</a></li>
        <li><a href="#">文本主页</a></li>
    </ul>
</body>
</html>